package routers

import (
	"chuanyou4/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{}, "*:Get")
	beego.Router("/login", &controllers.MainController{}, "*:Login")
	beego.Router("/zhuce", &controllers.MainController{}, "*:Zhuce")
	beego.Router("/zhuanzhang", &controllers.MainController{}, "*:Zhuanzhang")

	// 提供一个验证用户名和密码的接口
	beego.Router("/yanzhengLogin", &controllers.MainController{}, "*:YanzhengLogin")
	// 用户注册
	beego.Router("/register", &controllers.MainController{}, "*:Register")
	// 处理用户注册
	beego.Router("/doRegister", &controllers.MainController{}, "*:DoRegister")
	beego.Router("/sendemail", &controllers.MainController{}, "*:SendEmail")

}
